package com.mayflygeek.mayflyask.util.mailutils;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * @author 蝈蝈 
 * @email guodefu909@126.com
 * @team 蜉蝣极客
 * @link www.mayflygeek.com 邮箱验证自定义实现类
 */
public class MyAuthenticator extends Authenticator {
	
	String userName = null;
	String password = null;

	public MyAuthenticator(String username, String password) {
		this.userName = username;
		this.password = password;
	}

	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(userName, password);
	}
}
